<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Comparison functions for poly_int (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="Comparison functions for poly_int (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="Comparison functions for poly_int (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Comparisons-involving-poly_005fint.html" rel="up" title="Comparisons involving poly_int">
<link href="Properties-of-the-poly_005fint-comparisons.html" rel="next" title="Properties of the poly_int comparisons">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
div.example {margin-left: 3.2em}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en">
<div class="subsection-level-extent" id="Comparison-functions-for-poly_005fint">
<div class="nav-panel">
<p>
Next: <a href="Properties-of-the-poly_005fint-comparisons.html" accesskey="n" rel="next">Properties of the <code class="code">poly_int</code> comparisons</a>, Up: <a href="Comparisons-involving-poly_005fint.html" accesskey="u" rel="up">Comparisons involving <code class="code">poly_int</code></a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="Comparison-functions-for-poly_005fint-1"><span>10.3.1 Comparison functions for <code class="code">poly_int</code><a class="copiable-link" href="#Comparison-functions-for-poly_005fint-1"> &para;</a></span></h4>

<p><code class="code">poly_int</code> provides the following routines for checking whether
a particular condition &ldquo;may be&rdquo; (might be) true:
</p>
<div class="example">
<pre class="example-preformatted">maybe_lt maybe_le maybe_eq maybe_ge maybe_gt
                  maybe_ne
</pre></div>

<p>The functions have their natural meaning:
</p>
<dl class="table">
<dt>&lsquo;<samp class="samp">maybe_lt(<var class="var">a</var>, <var class="var">b</var>)</samp>&rsquo;</dt>
<dd><p>Return true if <var class="var">a</var> might be less than <var class="var">b</var>.
</p>
</dd>
<dt>&lsquo;<samp class="samp">maybe_le(<var class="var">a</var>, <var class="var">b</var>)</samp>&rsquo;</dt>
<dd><p>Return true if <var class="var">a</var> might be less than or equal to <var class="var">b</var>.
</p>
</dd>
<dt>&lsquo;<samp class="samp">maybe_eq(<var class="var">a</var>, <var class="var">b</var>)</samp>&rsquo;</dt>
<dd><p>Return true if <var class="var">a</var> might be equal to <var class="var">b</var>.
</p>
</dd>
<dt>&lsquo;<samp class="samp">maybe_ne(<var class="var">a</var>, <var class="var">b</var>)</samp>&rsquo;</dt>
<dd><p>Return true if <var class="var">a</var> might not be equal to <var class="var">b</var>.
</p>
</dd>
<dt>&lsquo;<samp class="samp">maybe_ge(<var class="var">a</var>, <var class="var">b</var>)</samp>&rsquo;</dt>
<dd><p>Return true if <var class="var">a</var> might be greater than or equal to <var class="var">b</var>.
</p>
</dd>
<dt>&lsquo;<samp class="samp">maybe_gt(<var class="var">a</var>, <var class="var">b</var>)</samp>&rsquo;</dt>
<dd><p>Return true if <var class="var">a</var> might be greater than <var class="var">b</var>.
</p></dd>
</dl>

<p>For readability, <code class="code">poly_int</code> also provides &ldquo;known&rdquo; inverses of these
functions:
</p>
<div class="example">
<pre class="example-preformatted">known_lt (<var class="var">a</var>, <var class="var">b</var>) == !maybe_ge (<var class="var">a</var>, <var class="var">b</var>)
known_le (<var class="var">a</var>, <var class="var">b</var>) == !maybe_gt (<var class="var">a</var>, <var class="var">b</var>)
known_eq (<var class="var">a</var>, <var class="var">b</var>) == !maybe_ne (<var class="var">a</var>, <var class="var">b</var>)
known_ge (<var class="var">a</var>, <var class="var">b</var>) == !maybe_lt (<var class="var">a</var>, <var class="var">b</var>)
known_gt (<var class="var">a</var>, <var class="var">b</var>) == !maybe_le (<var class="var">a</var>, <var class="var">b</var>)
known_ne (<var class="var">a</var>, <var class="var">b</var>) == !maybe_eq (<var class="var">a</var>, <var class="var">b</var>)
</pre></div>

</div>



</body>
</html>
